#ifndef __TIMER_H
#define __TIMER_H
#include "sys.h"

extern int target_speed;

void TIM2_Int_Init(u16 psc, u16 arr);
void TIM3_PWM_Init(u16 arr, u16 psc);
void TIM4_Encoder_Init(void);
int Read_Encoder(TIM_TypeDef *timer );

#endif
